package com.uniriho.lxr0811_7300_bl.ui.fingerinput

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.uniriho.lxr0811_7300_bl.ble.BluetoothChatService

class ViewModel_FingerInput : ViewModel() {

    private val text by lazy{
        MutableLiveData<String>()
    }
    val result: LiveData<String> = text

    fun sendData(cmd:String){
        BluetoothChatService.getInstance().sendData(cmd,text)
    }
}